﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;

namespace iEverydayLog.Models
{
    public class ProfileCommon: ProfileBase
    {
        public virtual string FacebookId
        {
            get
            {
                return GetPropertyValue("FacebookID").ToString();
            }
            set
            {
                SetPropertyValue("FacebookID", value);
            }
        }

        public virtual string NickName
        {
            get
            {
                return GetPropertyValue("NickName").ToString();
            }
            set
            {
                SetPropertyValue("NickName", value);
            }
        }

        public virtual string Mobile
        {
            get
            {
                return GetPropertyValue("Mobile").ToString();
            }
            set
            {
                SetPropertyValue("Mobile", value);
            }

        }

        //public List<Item> MyItemList
        //{
        //    get { return (List<Item>)base["ItemList"]; }
        //    set { base["ItemList"] = value; }
        //}


        static public ProfileCommon GetUser(string userName)
        {
            return (ProfileCommon)
                   (ProfileBase.Create(userName));
        }

        
    }
}
